<template>
    <div>
        <p>id:<span>{{ $route.query.id }}</span></p>
        <p>name:<span>{{ $route.query.name }}</span></p>
    </div>
</template>

<script>
export default {
    name: 'NewsDetail',
    mounted(){
        console.log(this.$route.parmas.id)
    }
};
</script>

<style lang="scss" scoped>

</style>